from rest_framework import serializers
from frame_server.serializers import BaseSerializer as BSerializer
from .models import Attach

class BaseSerializer(BSerializer):
    id = serializers.CharField()

    class Meta:
        model = Attach

# 列表数据序列化
class ListSerializer(BaseSerializer):

    class Meta(BaseSerializer.Meta):
        fields = "__all__"

# 详情数据序列化
class DetailSerializer(BaseSerializer):
    class Meta(BaseSerializer.Meta):
        fields = "__all__"